<?php /* Template Name: Full-width page */ ?>
<?php get_header(); ?>

<div class="cols">
<?php if( have_posts() ): ?>
	<?php while( have_posts() ): the_post(); ?>
		<?php the_content(); ?>
	<?php endwhile; ?>
	<?php 
	if( function_exists('wp_pagenavi') ) {
		wp_pagenavi( '<div class="paginator inblog">', '</div>', 'pages');
	}else {
        wp_link_pages(
            array(
                'before'        => '<div class="paginator inblog"><div class="pages">',
                'after'         => '</div></div>',
                'pagelink'      => '<span>%</span>'
            )
        );
	}
	?>
<?php else: ?>
	<p><?php _e( 'Sorry, but page is empty.', LANGUAGE_ZONE ); ?></p>
<?php endif; ?>

</div>

<?php get_footer(); ?>
